<?php
/**
 * Created by IntelliJ IDEA.
 * User: HXL
 * Date: 2018/5/9
 * Time: 16:47
 */
namespace app\orders\validate;

use think\Validate;

class Met extends Validate{

    protected $rule=array(
        'meter_type'=>'require|unique:meter_types'
    );
    protected $message=array(
        'meter_type.require'=>'基表型号必须',
        'meter_type.unique'=>'基表型号已存在'
    );

}